﻿using System.Collections.Generic;
using com.youzu.warh.protocol;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
using UnityEngine.Rendering;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class NpcAllowSwitchTarget : AIBaseNode
    {
        public BBParameter<bool> isAllow = true;

        protected override void OnExecute()
        {
            _entity.battleAgent.allowSwitchTarget = isAllow.value;
            EndAction(true);
        }
        
    }
}